package org.linlinjava.litemall.db.models;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("t_region")
public class Region implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("pid")
    private Long pid;

    @TableField("name")
    private String name;

    @TableField("type")
    private Byte type;

    @TableField("code")
    private Integer code;
}